﻿using System;
using PresentationNamespace;

namespace TestStackNamespace.PresentationTests
{
    class FakeView: IStackView
    {
        public string stackState
        {
            get;
            set;
        }
        public string addItemField
        {
            get;
            set;
        }
        public string gotItemField
        {
            get;
            set;
        }
        public string errorMessage
        {
            get;
            set;
        }
        public bool isErrorMessageVisible
        {
            get;
            set;
        }
        public string logWindow
        {
            get;
            set;
        }
        public bool isLogPanelVisible
        {
            get;
            set;
        }

        public event Action OnGetElementClick;
        public event Action OnAddElementClick;
        public event Action OnShowLogClick;
        public event Action OnSaveLogClick;

        public void GetElementClick()
        {
            OnGetElementClick();
        }
        public void AddElementClick()
        {
            OnAddElementClick();
        }
        public void ShowLogClick()
        {
            OnShowLogClick();
        }
        public void SaveLogClick()
        {
            OnSaveLogClick();
        }
    }
}
